package com.lm.survey.web;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.lm.survey.logic.UserLogic;
import com.lm.survey.util.JsonHelper;

public class UserServlet extends BaseServlet {

    public void queryUser(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
    	
    	UserLogic ul = new UserLogic();
    	List list = ul.getAll();
        String json = JsonHelper.list2json(list);
        this.writeJson(json, response);

    }

    

   
    

}
